var ns,  app;
app = new Vue({
    el: '#app',
    data: {
        ID:0,
        process:[]

    },
    methods: {
        getData:function(){
            var that=this;
            var options = {};
            options.ID = that.ID;
            options.action = "getregisterprocess";
            ns.post(options, function (succeed, data, err) {
                if (succeed) {
                    that.process = data.process;
                } else {
                    api.toast({
                        msg: err,
                        duration: 2000,
                        location: 'bottom'
                    });
                }
            })
        

        },


    }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.ID = api.pageParam.ID || 0;
    app.getData();
};
